//
//  GameOverLayer.h
//  MathSpeed
//
//  Created by ToanTM on 5/18/14.
//
//

#ifndef __MathSpeed__GameOverLayer__
#define __MathSpeed__GameOverLayer__

#include <iostream>
#include <cocos2d.h>

USING_NS_CC;

class GameOverLayer : public CCLayer{
private:
    int score;
    int highScore;
    SEL_MenuHandler playCallback, menuCallback;
    CCNode* buttonListener;
    CCLabelTTF *lbScore, *lbHighScore;
    
    const char* getStringForScore();
    const char* getStringForHighScore();
public:
    ~GameOverLayer();
    virtual bool init();
    CREATE_FUNC(GameOverLayer);
    static GameOverLayer* create(int score, int highScore, CCNode* buttonListener, SEL_MenuHandler playCallback, SEL_MenuHandler menuCallback);
    
    void setScore(int score);
    void setHighScore(int highScore);
    void refreshData();

};

#endif /* defined(__MathSpeed__GameOverLayer__) */
